package com.peanut.model;

import java.util.LinkedHashSet;

public class CompanyTreeNode {
	private String id;
	private String comcode;
	private String uppcomcode;
	private String comcname;
	private String gradelevel;
	private String flag;
	private String text;
	private boolean leaf = true;
	private boolean expanded;
	private String iconCls;
	private LinkedHashSet<CompanyTreeNode> children;
	
	public String getText() {
		return text;
	}
	public LinkedHashSet<CompanyTreeNode> getChildren() {
		return children;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public boolean isExpanded() {
		return expanded;
	}
	public void setText(String text) {
		this.text = text;
	}
	public void setChildren(LinkedHashSet<CompanyTreeNode> children) {
		this.children = children;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public String getComcode() {
		return comcode;
	}
	public void setComcode(String comcode) {
		this.comcode = comcode;
	}
	public String getUppcomcode() {
		return uppcomcode;
	}
	public void setUppcomcode(String uppcomcode) {
		this.uppcomcode = uppcomcode;
	}
	public String getComcname() {
		return comcname;
	}
	public void setComcname(String comcname) {
		this.comcname = comcname;
	}
	public String getGradelevel() {
		return gradelevel;
	}
	public void setGradelevel(String gradelevel) {
		this.gradelevel = gradelevel;
	}
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String toString() {
		return "comcode:'"+this.comcode+"',comcname:'"+this.comcname+"',flag:'"+this.flag
			+"',gradelevel:'"+this.gradelevel+"',leaf:'"+this.leaf
			+"',uppcomcode:'"+this.uppcomcode+"',text:'"+this.text+"'";
	}
}
